<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js示例4-2-6</title>
	<script>
		var name = prompt("请输入您的姓名");
		alert("您的姓名是" + name);
	</script>
</head>
<body>
	
</body>
</html>